/** mixins/myRestaurantMixin.ts */
import { defineComponent } from 'vue';

export const restaurantMixin = defineComponent({
    data() {
        return {
            menu: [],
            reservations: [],
            payments: [],
            title: 'Restaurants'
        };
    },
    methods: {
        makeReservation() {
            console.log('Reservations made')
        },
        acceptPayment() {
            console.log("Payment accepted");
        },
    },
    created() {
        console.log(`Welcome to ${this.title}`);
    }

})
